package jmine.tec.batch.domain;

import javax.persistence.DiscriminatorValue;
import javax.persistence.Entity;
import javax.persistence.Transient;

import jmine.tec.persist.annotation.DiscriminatorComment;

@Entity
@DiscriminatorValue(value = "TEST")
@DiscriminatorComment("TEST")
public class MyPhaseInstance extends PhaseInstance<MyElement> {

    private transient MyElement object;

    /**
     * @return the object
     */
    @Transient
    public MyElement getObject() {
        return this.object;
    }

    /**
     * @param object the object to set
     */
    public void setObject(MyElement object) {
        this.object = object;
    }

    @Transient
    @Override
    public MyElement getElement() {
        return this.getObject();
    }
}
